local shiquan = fk.CreateSkill({
    name = "sj6__shiquan",
    tags = {Skill.Compulsory},
})

Fk:loadTranslationTable{
  ["sj6__shiquan"] = "恃权",
  [":sj6__shiquan"] = "<b>锁定技</b>，出牌阶段开始时，你失去1点体力并摸X张牌。然后若你的手牌数为全场最多，你回复1点体力。（X为你的体力值）",
  
  ["$sj6__shiquan1"] = "众人与蝼蚁何异？哈哈哈……",
  ["$sj6__shiquan2"] = "哼，树敌三千又如何？",
}

shiquan:addEffect(fk.EventPhaseStart, {
    can_trigger = function(self, event, target ,player, data)
      return player:hasSkill(shiquan.name) and target == player and player.phase == Player.Play
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      room:loseHp(player,1,shiquan.name)
      if not player.dead then
        player:drawCards(player.hp,shiquan.name)
        if not table.find(room:getOtherPlayers(player),function (p)
          return p:getHandcardNum() > player:getHandcardNum()
        end) then
          room:recover({who = player,num = 1,recoverBy = player,skillName = shiquan.name})
        end
      end
    end,
})

return shiquan